package org.csy.generic.test01;

import java.util.ArrayList;
import java.util.List;

/**
 * @author CSY
 * @date 2025 - 03 - 25
 */
public class MainTest01 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        list.add("好好学习");
        list.add("天天向上");

        //泛型特点：编译时有效，运行时无效(Object)
//        list.add(100);
        System.out.println(list.get(0));
    }
}
